package java8Up;

import java.util.concurrent.ConcurrentSkipListMap;

/**
 * @author Fang Ruichuan
 * @date 2023-01-07 16:47
 */
public class ConcurrentSkipListMapDemo {
    public static void main(String[] args) {
        ConcurrentSkipListMap<Integer, String> skipListMap = new ConcurrentSkipListMap<>();
        skipListMap.put(4, "4");
        skipListMap.put(5, "5");
        skipListMap.put(1, "1");
        skipListMap.put(6, "6");
        skipListMap.put(2, "2");

        System.out.println(skipListMap.keySet());
        System.out.println(skipListMap);
        System.out.println(skipListMap.descendingKeySet());
        System.out.println(skipListMap.descendingMap());
    }
}
